package com.lulalei.dbviewer.commons.bean;

import java.util.List;

/**
 * 数据库表对应的信息
 * @author lulalei
 */
public class TableBean {

    /**
     * 表名字
     */
    private String name;

    /**
     * 表在数据库中的名字
     */
    private String tableJdbcName;

    /**
     * 表注释
     */
    private String comment;

    /**
     * 主键名
     */
    private String primaryKeyName;

    /**
     * 主键在数据库中的名字
     */
    private String primaryKeyJdbcName;

    /**
     * 主键类型
     */
    private String primaryKeyType;

    /**
     * 表字段
     */
    private List<RowBean> rows;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }

    public List<RowBean> getRows() {
        return rows;
    }

    public void setRows(List<RowBean> rows) {
        this.rows = rows;
    }

    public String getPrimaryKeyName() {
        return primaryKeyName;
    }

    public void setPrimaryKeyName(String primaryKeyName) {
        this.primaryKeyName = primaryKeyName;
    }

    public String getPrimaryKeyType() {
        return primaryKeyType;
    }

    public void setPrimaryKeyType(String primaryKeyType) {
        this.primaryKeyType = primaryKeyType;
    }

    public String getTableJdbcName() {
        return tableJdbcName;
    }

    public void setTableJdbcName(String tableJdbcName) {
        this.tableJdbcName = tableJdbcName;
    }

    public String getPrimaryKeyJdbcName() {
        return primaryKeyJdbcName;
    }

    public void setPrimaryKeyJdbcName(String primaryKeyJdbcName) {
        this.primaryKeyJdbcName = primaryKeyJdbcName;
    }
}
